<?php

defined('_JEXEC') or die();

jimport('joomla.application.component.view');

class Easiv2adminViewManageExtensions extends JView {
	
	function display($tpl = null) {
		$this->addToolbar();
		
		/**
		 * get data from model and assign to view
		 */

		$model = $this->getModel('manageExtensions');

		$this->extensionNames = $model->getExtensionNames();
		$this->localInstallStatus = $model->getLocalInstallStatus();
		$this->remoteInstanceObjects = $model->getRemoteInstanceObjects();
		$this->remoteInstallStatus = $model->getRemoteInstallStatus();
		
		parent::display($tpl);
	}
	
	function addToolbar() {
		JToolbarHelper::title(JText::_('Manage Extensions'), 'checkin.png');
		JToolbarHelper::addNewX('manageExtensions.install', JText::_('Install selected'));
		JToolbarHelper::cancel('manageExtensions.uninstall', JText::_('Uninstall Selected'));
		JToolBarHelper::custom('manage.refresh', 'refresh', 'refresh',JText::_('Update selected'), false);
		JToolbarHelper::save('manageExtensions.save', JText::_('Save &amp; Return'));
	}
}